package com.hello.test;

import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Controller
public class Hello {

    @RequestMapping("/aaa")
    @ResponseBody
    public String aa(){
        Map aa = new HashMap();
        aa.put("sdfsf","dfgdfg");
        String bb = JSON.toJSONString(aa);
        System.out.print(bb);
        return bb;
    }

}
